package ch03.strings

/**
 * Created by caozp-ytcyc2007 on 2017/5/23.
 */

fun String.lastChar(): Char = this.get(this.length - 1)

fun main(args: Array<String>) {
    println("Kotlin".lastChar())
}